
#ifndef _BSP_KEY_H
#define _BSP_KEY_H





//******************************************************************
//******************************************************************
#include "HS52F2003.h"
#include "Common.h"
#include "bsp.h"

//******************************************************************
//******************************************************************
extern unsigned char m_key_val;

extern uint8_t key_ret2;

extern unsigned char buf_key;

void key_buf_get();
unsigned char key_scan(void);
unsigned char key_scan2(void);
void key_HL_handler();

#define		K_PWR		P0_0 
#define		K_ADD	    P2_2 
#define		K_DEC	    P0_0
#define		K_SW	    P2_4
#define		K_LED	    P2_6



//#define		MUTE_VAL			0x01
#define		K_PWR_VAL			0x08
#define		K_ADD_VAL			0x02
#define		K_DEC_VAL			0x04
#define		K_SW_VAL			  0x01
#define     K_LED_VAL	    0x10



//#define     DECODE_TYPE_CHG	0x06


#define		KEY_ONOFF_VAL		0x08


#define     RST_WIFI	        (K_ALM_VAL | K_LED_VAL)
//#define     K_STOP_BEEP_VAL	    (MUSIC_VAL | MUTE_VAL)

#endif

